﻿using AutoMapper;

namespace Colorful.Furniture.ErpInventoryManagement
{
    /// <summary>
    ///  供应商管理映射配置
    /// </summary>
    public class InventoryAutoMapperProfile : Profile
    {
        /// <summary>
        /// 自动映射
        /// </summary>
        public InventoryAutoMapperProfile()
        {
            //****************************输入************************

            //创建/更新成员 -> 数据成员表
            CreateMap<InventorySaveInputDto, Inventory>();

            CreateMap<InventoryDetailSaveInputDto, Inventory>();

            CreateMap<InventoryWithCustomerSaveInputDto, Inventory>();

            CreateMap<InventoryShopSaveInputDto, Inventory>();

            CreateMap<InventorySkuInputDto, InventoryProduct>();

            CreateMap<InventoryWithCustomerInputDto, InventoryWithCustomer>();

            CreateMap<InventoryShopInputDto, InventoryShop>();

            CreateMap<InventoryRawSaveInputDto, Inventory>();
            

            //****************************输出************************

            CreateMap<Inventory, InventoryFormOutputDto>();

            CreateMap<Inventory, InventoryWithCustomerFromOutputDto>();


        }
    }
}
